#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

static void HeapPrint(Heap* ps)
{
	for (int i = 0;i < ps->size;i++)
	{
		printf("%d ", ps->arr[i]);
	}
}

int main()
{
	Heap heap;
	HeapInit(&heap);
	int arr[] = { 9,8,7,6,5,4,3,2,1,25,7,5,4,15,8,3,6,9,11};
	for (int i = 0;i < (sizeof(arr) / sizeof(arr[0]));i++)
	{
		HeapPush(&heap, arr[i]);
	}
	HeapPrint(&heap);
	printf("\n");
	HeapPop(&heap);
	HeapPrint(&heap);
	printf("\n");
	printf("%d\n", HeapTop(&heap));
	printf("%d\n", HeapSize(&heap));
	return 0;
}